package name.hankc.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import name.hankc.spring.bean.awared.AwaredTestBeanName;

public class AwareNameApplication {

  public static void main(String[] args) throws Exception {
    ApplicationContext ctx = new AnnotationConfigApplicationContext(AwareConfiguration.class);
    AwaredTestBeanName bbb = ctx.getBean(AwaredTestBeanName.class);
    bbb.printBeanNames();
    System.out.println("-----------");
    System.out.println(bbb.getName());
  }
}